<template>
  <div class="index">
    <el-container>
      <el-aside width="200px">
         <div class="box">
            <div class="left">
              <i class="el-icon-s-platform"></i>
            </div>
            <div class="zi">
              考勤管理
            </div>
            <div class="right">
              <i class="el-icon-more"></i>
              <i class="el-icon-circle-plus"></i>
            </div>
          </div>
        <el-menu
          :default-active="$route.path"
          class="el-menu-vertical-demo"
          active-text-color="orange"
          router
        >
          <el-menu-item index="/index/business">
            <i class="el-icon-menu"></i>
            <span slot="title">出差申请</span>
          </el-menu-item>

          <el-menu-item index="/index/outside">
            <i class="el-icon-document"></i>
            <span slot="title">外勤打卡</span>
          </el-menu-item>

          <el-menu-item index="/index/leave">
            <i class="el-icon-setting"></i>
            <span slot="title">请假申请</span>
          </el-menu-item>

          <el-menu-item index="/index/work">
            <i class="el-icon-setting"></i>
            <span slot="title">加班申请</span>
          </el-menu-item>
        </el-menu>
      </el-aside>
      <el-main>
        <!-- 二级路由组件渲染出口 -->
        <router-view></router-view>
      </el-main>
    </el-container>
  </div>
</template>

<script>
export default {};
</script>

<style lang='scss'>
.el-aside {
  width: 200px;
  height: 721.6px;
}
.box{
  display: flex;
    height: 56px;
    font-size: 14px;
    color: #303133;
    cursor: pointer;
    transition: border-color .3s,background-color .3s,color .3s;
    box-sizing: border-box;
    .left{
      float: left;
      text-align: center;
      line-height: 56px;
      font-size: 20px;
      color:goldenrod;
      margin-right: 15px;
      margin-left: 10px;    }
    .zi{
       font-size: 20px;
       text-align: center;
      line-height: 56px;
      font-weight: 700;
      margin-right: 15px;
    }
    .right{
      float: right;
      text-align: center;
      line-height: 56px;
      font-size: 20px;
      i:nth-child(1){
         font-size: 20px;
         color: #000;
         margin-right: 5px;
      }
      i:nth-child(2){
         font-size: 20px;
         color: gold;
      }
    }
}
</style>